from hexconfig import *

import sys

FILENAME = "fleshedout"
clock = pygame.time.Clock()

print "LOADING......"
dh = DataHandler()
#ds = pickle.load(loadFile)
loadFile = open("../ai_data/"+FILENAME+".pkl",'rb')
ds = pickle.load(loadFile)

#del loadFile
ms = clock.tick()
secs = ms/1000
mins = secs/60
print
print "TIME TO LOAD DATA:",mins," mins,",secs%60 if secs>60 else secs," secs"
print "NODES_LENGTH",len(ds.nodes)
print "EDGES_LENGTH",len(ds.edges)

print "Nodes",len(ds.nodes)
print "Edges",len(ds.edges)


dh.autoSaveDataSet(ds)

print "Nodes",len(ds.nodes)
print "Edges",len(ds.edges)

exit()